.class public Lcom/xingbook/park/activity/BCViewAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static c:Lcom/xingbook/park/activity/BCViewAct;


# instance fields
.field a:Lcom/xingbook/ui/b/n;

.field b:Lcom/xingbook/c/a;

.field private d:Lcom/xingbook/c/n;

.field private e:Lcom/xingbook/d/a;

.field private f:Lcn/a/a/c/g;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/BCViewAct;->c:Lcom/xingbook/park/activity/BCViewAct;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    return-void
.end method

.method public static a()Lcom/xingbook/park/activity/BCViewAct;
    .locals 1

    sget-object v0, Lcom/xingbook/park/activity/BCViewAct;->c:Lcom/xingbook/park/activity/BCViewAct;

    return-object v0
.end method


# virtual methods
.method public varargs a(I[Ljava/lang/Object;)V
    .locals 4

    const/4 v3, 0x0

    packed-switch p1, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    new-instance v1, Landroid/content/Intent;

    const-class v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.park.PAGE_ID"

    aget-object v0, p2, v3

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->b()V

    invoke-virtual {p0, v1, v3}, Lcom/xingbook/park/activity/BCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BCViewAct;->overridePendingTransition(II)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x11
        :pswitch_0
    .end packed-switch
.end method

.method public b()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->h()V

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->d()V

    :cond_0
    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/BCViewAct;->c:Lcom/xingbook/park/activity/BCViewAct;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->finish()V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u661f\u5b9d\u4e66-\u9605\u8bfb\u5c01\u5e95"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a008e

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->b:Lcom/xingbook/c/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/c/a;->a(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->b()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    const/4 v5, 0x0

    const/16 v1, 0x80

    const/4 v4, -0x1

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V

    sput-object p0, Lcom/xingbook/park/activity/BCViewAct;->c:Lcom/xingbook/park/activity/BCViewAct;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->d:Lcom/xingbook/c/n;

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->b:Lcom/xingbook/c/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->d:Lcom/xingbook/c/n;

    invoke-virtual {v0}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->e:Lcom/xingbook/d/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->e:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/a;->c()Lcn/a/a/c/a;

    move-result-object v0

    check-cast v0, Lcn/a/a/c/g;

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->f:Lcn/a/a/c/g;

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->f:Lcn/a/a/c/g;

    invoke-virtual {v0}, Lcn/a/a/c/g;->j()I

    move-result v0

    invoke-virtual {v1}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/i;->a()I

    move-result v1

    invoke-static {p0, v0, v1}, Lcom/xingbook/c/e;->a(Landroid/app/Activity;II)V

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->f:Lcn/a/a/c/g;

    if-eqz v0, :cond_0

    new-instance v0, Lcom/xingbook/ui/b/n;

    iget-object v2, p0, Lcom/xingbook/park/activity/BCViewAct;->f:Lcn/a/a/c/g;

    iget-object v3, p0, Lcom/xingbook/park/activity/BCViewAct;->d:Lcom/xingbook/c/n;

    invoke-direct {v0, p0, v2, v3, v5}, Lcom/xingbook/ui/b/n;-><init>(Landroid/app/Activity;Lcn/a/a/c/g;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/b/n;->a(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->f()V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->g()V

    :cond_0
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f03000a

    invoke-virtual {v0, v2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const v2, 0x7f0a008e

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/activity/BCViewAct;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->e:Lcom/xingbook/d/a;

    sget v1, Lcn/a/a/b;->c:I

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->k(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->e:Lcom/xingbook/d/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->l(I)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->i()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->b()V

    const v0, 0x7f040008

    const v1, 0x7f04000a

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BCViewAct;->overridePendingTransition(II)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/a;->c()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 2

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/a;->d()V

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->b()Lcom/xingbook/ui/b/n;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->i()V

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->f()V

    :cond_0
    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BCViewAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v2}, Lcom/xingbook/ui/b/n;->getActivityTouchListener()Lcom/xingbook/ui/overclass/a;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    if-ne v3, v0, :cond_1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    float-to-int v3, v3

    invoke-interface {v2, v1, v3, v0}, Lcom/xingbook/ui/overclass/a;->a(IIZ)V

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-interface {v2, v1}, Lcom/xingbook/ui/overclass/a;->setNoMove(Z)V

    invoke-interface {v2}, Lcom/xingbook/ui/overclass/a;->getMovingState()Z

    move-result v3

    if-nez v3, :cond_2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-interface {v2, v3, v4}, Lcom/xingbook/ui/overclass/a;->c(II)V

    :cond_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-interface {v2, v3, v4}, Lcom/xingbook/ui/overclass/a;->b(II)V

    :cond_3
    iget-object v2, p0, Lcom/xingbook/park/activity/BCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v2}, Lcom/xingbook/ui/b/n;->k()Z

    move-result v2

    if-nez v2, :cond_0

    move v0, v1

    goto :goto_0
.end method
